package org.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Resources;
import org.example.mapper.ResourceMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ResourceService extends ServiceImpl<ResourceMapper,Resources> {
    @Resource
    ResourceMapper resourceMapper;

    public List<Resources> selectResource(String username) {
        return resourceMapper.selectResource(username);
    }

    public void updateByIdReview(Integer id, String s, String reviewComment) {
        resourceMapper.updateByIdReview(id,s,reviewComment);
    }
}
